using System.Configuration;
using TemplateWeb.Models;
using TemplateWeb.Models.Repositories;
namespace TemplateWeb.Helpers
{
	public static class WebConfiguration
	{
		public static string SiteName
		{
			get
			{
				return ConfigurationManager.AppSettings["SiteName"];
			}
		}

		public static string MailServer
		{
			get
			{
				return ConfigurationManager.AppSettings["MailServer"];
			}
		}

		public static string EnableErrorLogEmail
		{
			get
			{
				return ConfigurationManager.AppSettings["EnableErrorLogEmail"];
			}
		}

		public static string ErrorLogEmail
		{
			get
			{
				return ConfigurationManager.AppSettings["ErrorLogEmail"];
			}
		}

		public static string EmailLienHe { get; set; }
		public static string PasswordEmailLienHe { get; set; }

		public static int NumDanhGiaPerPage
		{
			get
			{
				return int.Parse(ConfigurationManager.AppSettings["NumDanhGiaPerPage"]);
			}
		}

		public static int NumDoiTacPerPage
		{
			get
			{
				return int.Parse(ConfigurationManager.AppSettings["NumDoiTacPerPage"]);
			}
		}

		public static int NumThongTinCongTyPerPage
		{
			get
			{
				return int.Parse(ConfigurationManager.AppSettings["NumThongTinCongTyPerPage"]);
			}
		}

		public static int NumGocChiaSePerPage
		{
			get
			{
				return int.Parse(ConfigurationManager.AppSettings["NumGocChiaSePerPage"]);
			}
		}

		public static int NumNguoiDungPerPage
		{
			get
			{
				return int.Parse(ConfigurationManager.AppSettings["NumNguoiDungPerPage"]);
			}
		}

		public static int NumLoaiTinTucPerPage
		{
			get
			{
				return int.Parse(ConfigurationManager.AppSettings["NumLoaiTinTucPerPage"]);
			}
		}

		public static int NumTinTucPerPage
		{
			get
			{
				return int.Parse(ConfigurationManager.AppSettings["NumTinTucPerPage"]);
			}
		}

		public static int NumLoaiSachPerPage
		{
			get
			{
				return int.Parse(ConfigurationManager.AppSettings["NumLoaiSachPerPage"]);
			}
		}

		public static int NumSachPerPage
		{
			get
			{
				return int.Parse(ConfigurationManager.AppSettings["NumSachPerPage"]);
			}
		}

		public static int NumHopThuPerPage
		{
			get
			{
				return int.Parse(ConfigurationManager.AppSettings["NumHopThuPerPage"]);
			}
		}

		public static int NumPhanHoiPerPage
		{
			get
			{
				return int.Parse(ConfigurationManager.AppSettings["NumPhanHoiPerPage"]);
			}
		}

		public static int NumsysdiagramsPerPage
		{
			get
			{
				return int.Parse(ConfigurationManager.AppSettings["NumsysdiagramsPerPage"]);
			}
		}

		public static int Numaspnet_UsersPerPage
		{
			get
			{
				return int.Parse(ConfigurationManager.AppSettings["Numaspnet_UsersPerPage"]);
			}
		}

        public static int NumDoLuuNiemPerPage
        {
            get
            {
                return int.Parse(ConfigurationManager.AppSettings["NumDoLuuNiemPerPage"]);
            }
        }

        public static int NumSanPhamPerPage
        {
            get
            {
                return int.Parse(ConfigurationManager.AppSettings["NumSanPhamPerPage"]);
            }
        }


		public static int ThongTinCongTySortDescription
		{
			get
			{
				return int.Parse(ConfigurationManager.AppSettings["ThongTinCongTySortDescription"]);
			}
		}

		public static int GocChiaSeSortDescription
		{
			get
			{
				return int.Parse(ConfigurationManager.AppSettings["GocChiaSeSortDescription"]);
			}
		}

		public static int TinTucSortDescription
		{
			get
			{
				return int.Parse(ConfigurationManager.AppSettings["TinTucSortDescription"]);
			}
		}

		public static int SachSortDescription
		{
			get
			{
				return int.Parse(ConfigurationManager.AppSettings["SachSortDescription"]);
			}
		}
	}
}
